import request from '@/utils/request'

// api地址
const api = {
  list: '/v1/order/get',
  submit: '/v1/order/comment'
}

// 待评价订单商品列表
export const list = (order_id, param) => {
  return request.get(api.list, { order_id, ...param })
}

// 创建商品评价
export const submit = (order_id, data) => {
  return request.post(api.submit, { order_id, data })
}
